<html>
<head>
    <title>Document</title>
</head>
<body>
<form action="list" method="post">
    <input name="title" placeholder="请输入新闻标题"/>
    <select name="categoryName">
        <option value="">请选择</option>
        <option th:each="a:${cs}"
                th:value="${a.categoryName}"
        th:text="${a.categoryName}"></option>
    </select>

    <input type="submit"/>
</form>
<a th:href="@{goAdd}">新增新闻</a>
<table border="1" align="center" width="50%">
    <tr>
        <td>编号</td>
        <td>新闻标题</td>
        <td>操作</td>
    </tr>
    <tr th:each="a:${ns}">
        <td th:text="${a.newsId}"></td>
        <td th:text="${a.title}"></td>
        <td>操作</td>
    </tr>
</table>
</body>
</html>
